package com.xh.bussiness.teachbook.service;

import com.xh.bussiness.teachbook.model.TeachingBookNumber;
import com.xh.core.service.IBaseService;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2019/9/17
 */
public interface ITeachingBookNumberService extends IBaseService<TeachingBookNumber> {

    void deleteByTeachingBookId(String teachingBookId);
    /**
     * 学生或班级备课次数
     */
    void saveTeachingBookNumber(String teachingBookId,String refId,String type,String contractId);

    TeachingBookNumber queryTeachingBookNumberByTeachingBookId(String teachingBookId);

    /**
     * 查询上节备课次数
     * @param refId
     * @param type
     * @param contractId
     * @param num
     * @return
     */
    TeachingBookNumber queryPreTeachingBokNumber(String refId,Integer type,String contractId,Integer num);
}
